/*
 * @Author: 胡俊/treence
 * @Date: 2022-05-18 13:41:31
 * @LastEditors: 徐伟杰
 * @LastEditTime: 2022-11-15 15:59:52
 * @Description: 
 * @Email: treence@gmail.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from '@/request/globalPostRequest.js'

// 列表
export function peopleManage_list (data, callback) {
    return globalPostRequest({
        url: '/staff/list',
        method: 'get',
        data,
        callback
    })
}

// 更新
export function peopleManage_update (data, callback) {
    return globalPostRequest({
        url: '/staff/save',
        method: 'post',
        header: {
            'content-type': 'application/json;charset=UTF-8'
        },
        data,
        callback
    })
}

// 查看
export function peopleManage_form (data, callback) {
    return globalPostRequest({
        url: '/staff/byId/' + data,
        method: 'get',
        callback
    })
}

// 重置密码
export function peopleManage_resetPassword (data, callback) {
    return globalPostRequest({
        url: '/staff/resetPasswd',
        method: 'get',
        data,
        callback
    })
}

// 离职
export function peopleManage_quit (data, callback) {
    return globalPostRequest({
        url: '/staff/quit',
        method: 'get',
        header: {
            'content-type': 'application/json;charset=UTF-8'
        },
        data,
        callback
    })
}